# Unsafe suCGI build configuration. Useful for testing.
# Use "addcflags [COMPILER ...] FLAG [...]" to add compiler flags.
# Use "addcppflags FLAG [...]" to add C preprocessor flags.
# Use "addldflags [COMPILER ...] FLAG [...]" to add linker flags.

# Trust the programmer.
addcppflags -D_FORTIFY_SOURCE=0 -DNDEBUG -DNATTR

# Use ISO/IEC 9899:1999 C. Some compilers require this flag.
addcflags -std=c99

# Optimise the build past the point of safety.
addcflags -O3 -O4 -O9 -O99 -s
addcflags clang gcc -Ofast

# Not likely to do much, admittedly.
addcflags -march=native

# Fail on floating point overflow.
addcflags -ftrapv

# Enable link time optimisation.
addcflags -flto

# Disable useless warnings.
addcflags -Wno-unused-command-line-argument

# Disable diagnostics for unknown pragmas for ICC,
# which claims to be compatible with GCC, but isn't.
addcflags icc -diag-disable=2282

# Disable ICC deprecation warning.
addcflags icc -diag-disable=10441
